-
Notifications
You must be signed in to change notification settings - Fork 109
Add .ruby-version
#226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .ruby-version
#226
Conversation
| uses: ruby/setup-ruby@v1 | ||
| uses: ruby/setup-ruby@8a836efbcebe5de0fe86b48a775b7a31b5c70c93 # v1.277.0 | ||
| with: | ||
| ruby-version: '3.4' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It reads .ruby-version by default.
| - package-ecosystem: bundler | ||
| directory: / | ||
| schedule: | ||
| interval: 'weekly' | ||
| interval: weekly | ||
| groups: | ||
| dependencies: | ||
| dependency-type: production | ||
| dev-dependencies: | ||
| dependency-type: development | ||
| cooldown: | ||
| default-days: 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enables Grouped version updates for Gemfile deps.
9a77e22 to
ffd26e3
Compare
|
TryRuby works fine without specifying a version as long as you're using a non-EOL Ruby, so Is there any particular reason you want to add it? |
|
Main reason is that I would like to use the exactly same version in CI/CD and Gemfile. Also, since this is a web application and not a library that can be referenced, and it currently does not run on Ruby 4, it's best to keep the Ruby version fixed. |
Thanks. I fixed that at #227
I don't think so. We are not just users but developers, so we actively support new versions includes 4.1.0dev. |
I added
.ruby-versionand refer it from Gemfile and GitHub Actions. Some improvements related to dependencies are also added.Summary of changes by Copilot
This pull request updates the project's Ruby version and improves dependency management across configuration files, Docker, and CI workflows. The changes ensure consistency in Ruby versioning, enhance automation for dependency updates, and increase the reliability of GitHub Actions by pinning action versions.
Ruby version and dependency management updates:
.ruby-versionfile specifying Ruby version3.4.8and updatedGemfileandDockerfileto use this version for consistency across local development, Docker builds, and CI. (.ruby-version,Gemfile,Dockerfile) [1] [2] [3]middleman-cliandostructgems to theGemfileto support CLI functionality and provide additional Ruby utilities. (Gemfile) [1] [2]Automation and workflow improvements:
.github/dependabot.ymlto add support for bundler dependency updates, group dependencies by type (production vs. development), and set a cooldown period to avoid frequent PRs. (.github/dependabot.yml)deploy.yml,test.yml) to specific commit SHAs for increased security and reliability, and removed explicitruby-versionsettings to rely on.ruby-version. (.github/workflows/deploy.yml,.github/workflows/test.yml) [1] [2] [3]